import Request from '@/api/request'
var request = new Request().http

//获取已上架商品
export function getExchangeProduct(data : any) {
	return request({
		url: "/applet/supermarket-product/getProduct",
		method: "Get",
		data
	})
}

// 获取待上架商品
export function getProductList() {
	return request({
		url: "/applet/supermarket-product/getProductList",
		method: "Get"
	})
}

//修改商品状态
export function updateStatus(data: any) {
	return request({
		url: "/applet/supermarket-product/updateStatus",
		method: "Get",
		data
	})
}

//商品详情
export function getProductInfo(data: any) {
	return request({
		url: "/applet/supermarket-product/getProductInfo",
		method: "Get",
		data
	})
}

//确认收货
export function exchange_updateStatus(data: any) {
	return request({
		url: "/applet/exchange/updateStatus",
		method: "Get",
		data
	})
}

//获取库存信息 
export function getInventoryInfo(data: any) {
	return request({
		url: "/applet/supermarket-product/getInventoryInfo",
		method: "Get",
		data
	})
}
//商品分类
export function getlistseon() {
	return request({
		url: "/applet/supermarket-product/getNameAndId",
		method: "Get"
	})
}
//商品分类
export function getExchangeCode(data: any) {
	return request({
		url: "/applet/exchange/getExchangeCode",
		method: "Get",
		data
	})
}


